<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" th:href="@{/css/common.css}"/>
    <link rel="stylesheet" th:href="@{/css/index.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.min.css}"/>
    <title>中食链-找回密码</title>
</head>
<body>
    <div class="header password-head">
        <div class="center clear">
            <div class="logo"><img th:src="@{/img/Logo.png}" alt="" /></div>

            <div class="login" style="color: #fff;">
                已有账号，马上<a style="text-decoration: underline;" class="loginBtn" th:href="@{/}">登录</a>
            </div>
        </div>
    </div>
    <div class="safetyCode">
        <div class="Aright">
            <img th:src="@{/img/tip_3.png}" alt="" />
            <div class="sucImg"><img th:src="@{/img/success.png}" alt="" /></div>
            <a th:href="@{/}" class="login_href">马上登录</a>
        </div>
    </div>


<script th:src="@{/js/jquery.min.js}" ></script>
<script>

    var basePath = [[@{/}]];

    $(function(){
        $("#form-submit").on("click", function () {
            var newPwd = $.trim($("#newPwd").val());
            var confirmPwd = $.trim($("#confirmPwd").val());

            if (newPwd.length == 0) {
                $(".error_msg").html("请输入新密码");
                return;
            }

            if (confirmPwd.length == 0) {
                $(".error_msg").html("请输入确认密码");
                return;
            }

            if (newPwd != confirmPwd) {
                $(".error_msg").html("两次密码输入不一致");
                return;
            }

            $("#form-data").submit();

        })
    });



</script>

</body>
</html>